package zuoye.xiti;
public class NumberAlphabet {
	public static void main(String[] args) { 
		NumberThread n = new NumberThread();		
		Thread t1 = new Thread(n);					
		AlphabetThread a = new AlphabetThread();		
		Thread t2 = new Thread(a);					
		t1.start();									
		t2.start();									
	}
}
class NumberThread implements Runnable{
	public void run(){
		for (int i = 0; i <= 10; i++){
			for(int j = 0; j < 10; j++)					
			   System.out.print((int)(Math.random()*10) + " ");
			System.out.println();
		}
	}
}
class AlphabetThread implements Runnable{ 
	public void run(){
		for (int i = 0;i <= 10; i++){
			for (char c = 'a'; c <= 'z'; c++)				
				System.out.print(c);
			System.out.println();
		}
	}
}